#include <stdio.h>
#include <string.h>
#include "uart.h"

// set up file for I/O operations
FILE uart_str = FDEV_SETUP_STREAM(uart_putc,uart_getc,_FDEV_SETUP_RW);

int main (void){

	// init text buffer to size 80
	char text[MAX_BUFFER_SIZE];

	//SET BAUD RATE = 9600
	uart_init(103);
	
	// make getc and putc the standard in and standard out
	stdout = stdin = &uart_str;
	
	// print out system ready prompt
	fprintf(stdout,"System Ready. You Are Now Connected.\n\n");

	while(1){
		fgets(text,MAX_BUFFER_SIZE, stdin);	
	}
}